Component({
  data: {
    selected: 0,
    color: "#7A7E83",
    selectedColor: "#eb6383",
    list: [
      {
        text: '首页',
        pagePath: "/pages/index/index",
        iconPath: "../image/icon_component.png",
        selectedIconPath: "../image/icon_component_HL.png",
        tagType: 'text',
        selectedColor: '#eb6383'
      },
      {
        text: '发布',
        pagePath: "/pages/publish/index",
        iconPath: "../image/icon_component.png",
        iconName: 'icon-fabu',
        selectedIconPath: "",
        tagType: 'font',
        color: '#eb6383',
        selectedColor: '#eb6383'
      },
      {
        text: '个人中心',
        pagePath: "/pages/user/index",
        iconPath: "../image/icon_component.png",
        selectedIconPath: "",
        tagType: 'text',
        selectedColor: '#eb6383'
      },
    ]
  },
  attached() {
  },
  methods: {
    switchTab(e) {
      const data = e.currentTarget.dataset
      const url = data.path
      wx.switchTab({ url })
    }
  }
})
